﻿using System;

using SBPweb.PROvibe.Shared.Communication;

namespace SBPweb.PROvibe.Client.Framework.Communication
{

    public class MessageContentEventArgs<T> : MessageContentEventArgs
            where T : MessageContentBase
    {

        internal MessageContentEventArgs(MessageContentBase content)
            : base(content)
        {
        }

        public new T Content
        {
            get
            {
                return (T)base.Content;
            }
            set
            {
                base.Content = value;
            }
        }

    }

    public class MessageContentEventArgs : EventArgs
    {

        internal MessageContentEventArgs(MessageContentBase content)
        {
            this.Content = content;
        }

        public MessageContentBase Content;

    }

}
